package com.suapi.suapiclientsdk;

import com.suapi.suapiclientsdk.client.SuapiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "suapi.client")
@Data
@ComponentScan
public class SuApiClientConfig {

    private String accessKey;
    private String secretKey;

    @Bean
    public SuapiClient suapiClient() {
        return new SuapiClient(accessKey, secretKey);
    }



}
